package com.novoda.runbuddy.view;

import com.google.android.maps.MapActivity;
import com.google.android.maps.MapView;
import com.novoda.runbuddy.controller.CurrentRunMapControllerImpl;

public class CurrentRunMapView {

	@SuppressWarnings("unused")
	private MapActivity	mapActivity;
	public MapView		mapView;

	public CurrentRunMapView(MapActivity mapActivity, CurrentRunMapControllerImpl mapOfJogControllerImpl, MapView mapView) {
		this.mapActivity = mapActivity;
		this.mapView = mapView;
	}

	public void invalidateMapView() {
		this.mapView.invalidate();
	}

	public void toggleSatellite() {
		
		if (mapView.isSatellite()){
			this.mapView.setSatellite(false);
		}else{
			this.mapView.setSatellite(true);
		}
	}

	public boolean isSatellite() {
		return this.mapView.isSatellite();
	}

	public int getZoomLevel() {
		return this.mapView.getZoomLevel();
	}

}
